<include file="application/walletadmin/view/public/left.html"/>
 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">管理中心<b>></b><strong>幻灯设置</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
    <form action="{:U('Advertising/add')}" method="post" enctype="multipart/form-data" id="myform" name="myform">
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
      <tr>
        <td>封面图片：</td>
        <td>
            <img style="width:400px;" src="{$flash.pic}"><input type="hidden" name="pic" value="{$flash.pic}" class="inpMain" size="50">
        </td>
      </tr>
      <tr>
        <td>图片上传：</td>
        <td>
            <input type="file" name="Filedata" class="inpMain" size="50">
        </td>
      </tr>

    <tr>
        <td>标题：</td>
        <td><input type="text"  value="{$flash.title}" size="50" name="title" class="inpMain"></td>
    </tr>
    <tr>
        <td>跳转地址：</td>
        <td><input type="text" value="{$flash.url}" size="50" name="url" class="inpMain"></td>
    </tr>
    <tr>
        <td>排序：</td>
        <td><input type="text" value="{$flash.sort}" size="50" name="sort" class="inpMain"><span style="color:red">数值越大排序越靠前</span></td>
    </tr>
	<tr>
       <td>文章描述：</td>
       <td>
        <!-- KindEditor -->
        <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/themes/default/default.css" />
        <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css" />
        <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/kindeditor.js"></script>
        <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/lang/zh_CN.js"></script>
        <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.js"></script>
        <script>
          KindEditor.ready(function(K) {
            var editor1 = K.create('textarea[name="content"]', {
              cssPath : '../plugins/code/prettify.css',
              uploadJson : '../php/upload_json.php',
              fileManagerJson : '../php/file_manager_json.php',
              allowFileManager : true,
              afterCreate : function() {
                var self = this;
                K.ctrl(document, 13, function() {
                  self.sync();
                  K('form[name=example]')[0].submit();
                });
                K.ctrl(self.edit.doc, 13, function() {
                  self.sync();
                  K('form[name=example]')[0].submit();
                });
              }
            });
            prettyPrint();
          });
      </script>
        <!-- /KindEditor -->
        <textarea id="content" name="content" style="width:780px;height:400px;" class="textArea">{$flash.content}</textarea>
       </td>
      </tr>
      <tr>
      	<td>是否显示</td>
      	<td>
      		<input name="status" type="radio" value="1" <if condition="$list['status'] eq 1">checked="checked"</if>/> 显示
      		<input name="status" type="radio" value="0" <if condition="$list['status'] eq 0">checked="checked"</if>/> 不显示
      	</td>
      </tr>

        <input type="hidden" value="{$flash.advertising_id}" name="advertising_id">

      <tr>
        <td></td>
        <td><input class="btn " value="提交"  type="submit" >
          <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button"></td>
      </tr>
    </table>
    </form>
</div>
</div>
<div class="clear"></div>
<include file="application/walletadmin/view/public/foot.html"/><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
</body>
</html>